package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface OrderMapper {
    /**
     * 分页查询
     * @param queryString
     * @return
     */
    Page<Order> findPage(String queryString);

    /**
     * 修改预约状态
     * @param id
     * @param orderStatus
     */
    @Update("update t_order set orderStatus=#{orderStatus} where id=#{id}")
    void updateStatus(Integer id, String orderStatus);
}
